package com.cjkj.applet.service.impl;

import com.cjkj.applet.service.TJ01ReportService;
import com.cjkj.common.core.utils.DateUtils;
import com.cjkj.common.core.web.domain.AjaxResult;
import com.cjkj.system.api.RemoteTJ01HealthReportService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TJ01ReportServiceImpl implements TJ01ReportService {

    @Resource
    private RemoteTJ01HealthReportService remoteTJ01HealthReportService;

    @Override
    public AjaxResult getSleepReportList(Long visitNo) {
        return remoteTJ01HealthReportService.getSleepReports(visitNo, DateUtils.getDate());
    }

    @Override
    public AjaxResult getHeartReportList(Long visitNo) {
        return remoteTJ01HealthReportService.getHeartReports(visitNo, DateUtils.getDate());
    }

    @Override
    public AjaxResult getBreatheReportList(Long visitNo) {
        return remoteTJ01HealthReportService.getBreatheReports(visitNo, DateUtils.getDate());
    }

    @Override
    public AjaxResult getSpo2ReportList(Long visitNo) {
        return remoteTJ01HealthReportService.getSpo2Reports(visitNo, DateUtils.getDate());
    }

    @Override
    public AjaxResult getTJ01ReportData(String visitNos, String reportItems, String reportDate) {
        return remoteTJ01HealthReportService.requestPrintReportData(visitNos, reportItems, reportDate);
    }
}
